#include <stdio.h>
#include <stdlib.h>

int main(void){
	char ch;
	system("stty raw");
	while ((ch = getchar()) != '#' ) {
		printf("Input %c", ch);
	}
	system("stty cooked");
}
